<?php $this->_extends('_layouts/basic_layout'); ?>

<?php $this->_block('resource'); ?>

<?php $this->_endblock(); ?>

<?php $this->_block('title'); ?>
	文件管理
<?php $this->_endblock(); ?>

<?php $this->_block('pageCss'); ?>
	<link rel="stylesheet" type="text/css" media="screen" href="css/elfinder.min.css">
	<link rel="stylesheet" type="text/css" media="screen" href="css/theme.css">
<?php $this->_endblock(); ?>

<?php $this->_block('pageJs'); ?>
	<script type="text/javascript" src="js/elfinder.min.js"></script>
	<script type="text/javascript" src="js/i18n/elfinder.ru.js"></script>
<?php $this->_endblock(); ?>

<?php $this->_block('admin_contents'); ?>

	<div class="row-fluid">
		<div class="box span12">
			<div class="box-header well" data-original-title>
				<h2><i class="icon-picture"></i> 文件管理器</h2>
				<div class="box-icon">
					<a href="#" class="btn btn-minimize btn-round"><i class="icon-chevron-up"></i></a>
				</div>
			</div>
			<div class="box-content">
				<div id="elfinder"></div>
			</div>
		</div><!--/span-->
	
	</div><!--/row-->
			
	<hr>

	<div class="modal hide fade" id="myModal">
		<div class="modal-header">
			<button type="button" class="close" data-dismiss="modal">×</button>
			<h3>Settings</h3>
		</div>
		<div class="modal-body">
			<p>Here settings can be configured...</p>
		</div>
		<div class="modal-footer">
			<a href="#" class="btn" data-dismiss="modal">Close</a>
			<a href="#" class="btn btn-primary">Save changes</a>
		</div>
	</div>
	
	<script type="text/javascript">
		$(document).ready(function() {
			var elf = $('#elfinder').elfinder({
				url : <?php echo json_encode(url('filemanager/connector')); ?>  // connector URL (REQUIRED)
				// lang: 'ru',             // language (OPTIONAL)
			}).elfinder('instance');
		});
	</script>

<?php $this->_endblock();?>
